const express = require("express");
const app = express();
const Logger =require('./logger/logger');
const logger = new Logger('liangyi')
logger.log(235345)
logger.log('sdv')
logger.log('23423sdvgdfb')
let i = 0
setInterval(() => {
  // logger.log((i++).toString())
}, 1000);
logger.error('error')
logger.error('3254')
logger.error('{}')

app.get("/", (req, res, next) => {
  // console.log(req,res)
  logger.log('请求成功...' + Date.now())
  res.status = 200;
  res.send("213423");
});
app.listen(8888, (error) => {
  if (error) {
    logger.error('服务启动失败')
  } else {
    logger.log('服务启动成功')
  }
})